﻿using System;

namespace TavDom.Library.Core.Utilities.ExtensionMethods
{
    public static class ConvertExtensionMethods
    {
        public static int ToInt32(this object o)
        {
            return Convert.ToInt32(o);
        }

        public static double ToDouble(this object o)
        {
            return Convert.ToDouble(o);
        }

        public static decimal ToDecimal(this object o)
        {
            return Convert.ToDecimal(o);
        }

        public static bool ToBoolean(this object o)
        {
            return Convert.ToBoolean(o);
        }

        public static long ToLong(this object o)
        {
            return Convert.ToInt64(o);
        }
    }
}
